package com.house365.im.client;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Static constants for this package.
 * 
 * @author Sehwan Noh (devnoh@gmail.com)
 * @modifier Rick Ping modifier
 */
public class Constants {

    public static final String SHARED_PREFERENCE_NAME = "im_client_preferences";

    // PREFERENCE KEYS

    public static final String CALLBACK_ACTIVITY_PACKAGE_NAME = "CALLBACK_ACTIVITY_PACKAGE_NAME";
    public static final String CALLBACK_ACTIVITY_CLASS_NAME = "CALLBACK_ACTIVITY_CLASS_NAME";
    public static final String CALLBACK_BROADCAST_ACTION = "CALLBACK_BROADCAST_ACTION";
    public static final String HEARTBEAT_BROADCAST_ACTION = "HEARTBEAT_BROADCAST_ACTION";
    public static final String ROOT_ACTIVITY = "ROOT_ACTIVITY";
    public static final String API_KEY = "API_KEY";
    public static final String APP_NAME = "APP_NAME";
    public static final String VERSION = "VERSION";

    public static final String XMPP_HOST = "XMPP_HOST";

    public static final String XMPP_PORT = "XMPP_PORT";

    public static final String XMPP_F_USERNAME = "XMPP_F_USERNAME";

    public static final String XMPP_F_PASSWORD = "XMPP_F_PASSWORD";
    public static final String XMPP_F_ACCOUNTTYPE = "XMPP_F_ACCOUNTTYPE";
    public static final String XMPP_F_APP = "XMPP_F_APP";
    public static final String XMPP_USERNAME = "XMPP_USERNAME";

    public static final String XMPP_PASSWORD = "XMPP_PASSWORD";


    public static final String UPLOAD_URL = "UPLOAD_URL";

    public static final String NOTIFICATION_ICON = "NOTIFICATION_ICON";

    public static final String SETTINGS_NOTIFICATION_ENABLED = "SETTINGS_NOTIFICATION_ENABLED";

    public static final String SETTINGS_SOUND_ENABLED = "SETTINGS_SOUND_ENABLED";

    public static final String SETTINGS_VIBRATE_ENABLED = "SETTINGS_VIBRATE_ENABLED";

    public static final String SETTINGS_TOAST_ENABLED = "SETTINGS_TOAST_ENABLED";
    public static final String SETTINGS_BROADCAST_ENABLED = "SETTINGS_BROADCAST_ENABLED";

    
    
    public static final int HEART_BEAT_INTERVAL=20;
    // NOTIFICATION FIELDS

//    public static final String NOTIFICATION_ID = "NOTIFICATION_ID";
//
//    public static final String NOTIFICATION_API_KEY = "NOTIFICATION_API_KEY";
//
//    public static final String NOTIFICATION_TITLE = "NOTIFICATION_TITLE";
//
//    public static final String NOTIFICATION_MESSAGE = "NOTIFICATION_MESSAGE";
//
//    public static final String NOTIFICATION_URI = "NOTIFICATION_URI";
    
    
    public static String ACTION_PREFIX="ACTION_PREFIX";

    // INTENT ACTIONS
//    private static SharedPreferences sharedPrefs;
//    public static String getActionShowNotification(Context context){
//    	if(sharedPrefs == null){
//    		sharedPrefs = context.getSharedPreferences(
//    				Constants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE);
//    	}
//    	
//    	return sharedPrefs.getString(
//    			ACTION_PREFIX, "")+".com.house365.androidpn.client.SHOW_NOTIFICATION";
//    }
//   
//    public static String getActionXMPPHeartbeat(Context context){
//    	if(sharedPrefs == null){
//    		sharedPrefs = context.getSharedPreferences(
//    				Constants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE);
//    	}
//    	
//    	return sharedPrefs.getString(
//    			ACTION_PREFIX, "")+".com.house365.androidpn.client.XMPP_HEARTBEAT";
//    }
    //Intent fiedls
    public static final String ACTION_PULLACCOUNT_FIELD_ACCOUNT="ACTION_PULLACCOUNT_FIELD_ACCOUNT";
    
    public static final String NOTIFICATION_DATA="NOTIFICATION_DATA";
}
